<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        // 可以在控制台上查看代码的运行时间
        console.time("test");
        for(var i = 0; i < 10; i++){
            document.write(i);
        }
        console.timeEnd("test");
    </script>
</head>
<body>
    
</body>
</html>